package com.ikaros.service.admin.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ikaros.dao.SysUserMapper;
import com.ikaros.model.entity.SysMenu;
import com.ikaros.model.entity.SysUser;
import com.ikaros.model.query.UserQuery;
import com.ikaros.service.admin.SysUserService;
import org.springframework.stereotype.Service;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;
import java.util.Map;

/**
 * Created by Ikaros on 2017/9/27.
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements SysUserService {

    @Override
    public SysUser queryByUserName(String username) {
        return baseMapper.queryByUserName(username);
    }

    @Override
    public List<SysUser> queryList(Map<String,Object> map) {
        return baseMapper.queryList(map);
    }

    @Override
    public SysUser getById(Integer userId) {
        return baseMapper.selectById(userId);
    }

    @Override
    public List<Long> getUserMenuIdList(Long userId) {
        return baseMapper.getUserMenuIdList(userId);
    }

    @Override
    public List<String> queryAllPerms(Long userId) {
        return baseMapper.queryAllPerms(userId);
    }
}
